import request from '@/utils/request'
// 查询专家信息列表
export function getExpertList(data) {
	return request({
		'url': '/app/expert/list',
		data: data,
		'method': 'get'
	})
}
//查询当前用户喜欢的专家
export function getAttentionExpertList(data) {
	return request({
		'url': '/app/expert/attentionExpertList',
		'method': 'get',
		data: data
	})
}


//关注-取关专家
export function setExpertUser(data) {
	return request({
		'url': '/app/expert/setExpertUser',
		'method': 'put',
		data: data
	})
}
//获取专家信息详细信息
export function getExpert(id) {
	return request({
		'url': `/app/expert/${id}`,
		'method': 'get'
	})
}
//.查询专家排班数据
export function getExpertScheduleList(data) {
	return request({
		'url': `/app/expert/expertScheduleList`,
		'method': 'get',
		'data': data
	})
}
//新增用户咨询档案
export function addConsultationRecord(data) {
	return request({
		'url': `/app/expert/addConsultationRecord`,
		'method': 'post',
		'data': data
	})
}
//提交预约订单
export function addAppointment(data) {
	return request({
		'url': `/app/expert/addAppointment`,
		'method': 'post',
		'data': data
	})
}
//获取预约订单详细信息
export function appointmentDetail(id) {
	return request({
		'url': `/app/expert/appointment/${id}`,
		'method': 'get'
	})
}
//查询预约订单列表
export function appointmentList(data) {
	return request({
		'url': `/app/expert/appointmentList`,
		'method': 'get',
		'data': data
	})
}
//取消预约
export function cancelAppointment(data) {
	return request({
		'url': `/app/expert/cancelAppointment`,
		'method': 'put',
		'data': data
	})
}
//获取用户咨询档案详细信息
export function consultationRecord(id) {
	return request({
		'url': `/app/expert/consultationRecord/${id}`,
		'method': 'get'
	})
}
//查询当前用户档案列表
export function consultationRecordList(data) {
	return request({
		'url': `/app/expert/consultationRecordList`,
		'method': 'get',
		'data': data
	})
}
//付款预约
export function editAppointment(data) {
	return request({
		'url': `/app/expert/editAppointment`,
		'method': 'put',
		'data': data
	})
}
//查询专家排班数据
export function expertScheduleList(data) {
	return request({
		'url': `/app/expert/expertScheduleList`,
		'method': 'get',
		'data': data
	})
}

// 查询企业信息列表
export function getEnterpriseList(params) {
	return request({
		'url': `/app/appraisal/enterpriseList`,
		'method': 'get',
		params
	})
}